package org.company.mars.zookeeper.monitor;

import org.company.mars.zookeeper.monitor.DataMonitor.DataMonitorListener;

public class MyStatListener implements DataMonitorListener {
    
    private Process child;
    
    private String filename;
    
    private String[] exec;
    
    public MyStatListener(String filename,String[] exec) {
        this.filename = filename;
        this.exec = exec;
    }

    @Override
    public void reboot(byte[] data) {
        // TODO Auto-generated method stub
        if(data != null) {
            System.out.println("data node == " + new String(data));
        }
    }

    @Override
    public void closing(int rc) {
        // TODO Auto-generated method stub
        System.out.println("rc == " + rc);
    }

}
